package main

import "fmt"

type person struct {
	name string
}

func (per person) eat() {
	fmt.Println(per.name + " eating...")
}

func (per person) sleep() {
	fmt.Println(per.name + " sleep...")
}

func main() {
	var per person
	per.name = "jack"
	per.eat()
	per.sleep()
}
